function getUserList (params) {
    return $axios({
        url: '/user/page',
        method: 'get',
        params
    })
}

// 修改页面反查详情接口
function queryUserById (id) {
    return $axios({
        url: `/user/${id}`,
        method: 'get'
    })
}

function addUserHandle (params) {
    return $axios({
        url: '/user',
        method: 'post',
        data: { ...params }
    })
}
function addStudentHandle (params) {
    return $axios({
        url: '/user/student',
        method: 'post',
        data: { ...params }
    })
}
const deleteUser = (ids) => {
    return $axios({
        url: '/user',
        method: 'delete',
        params: { ids }
    })
}
const deleteStudent = (ids) => {
    return $axios({
        url: '/user/student',
        method: 'delete',
        params: { ids }
    })
}
function getStudentList (params) {
    return $axios({
        url: '/user/student/page',
        method: 'get',
        params
    })
}
